package com.example.db.dao;


import com.example.db.pojo.TbCheckin;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author AlbertHPW
 */
@Mapper
public interface TbCheckinDao {

    /**
     * 查询当天是否打卡
     */
    public Integer haveCheckin(HashMap param);
    public void insert(TbCheckin checkin);
    public HashMap searchTodayCheckin(int userId);
    public long searchCheckinDays(int userId);
    public ArrayList<HashMap> searchWeekCheckin(HashMap param);
}